import NftEggsStore from "../contracts/NftEggsStore.cdc"

transaction(listingResourceID: UInt64) {
    let storefront: &NftEggsStore.Storefront{NftEggsStore.StorefrontManager}

    prepare(acct: AuthAccount) {
        self.storefront = acct.borrow<&NftEggsStore.Storefront{NftEggsStore.StorefrontManager}>(from: NftEggsStore.StorefrontStoragePath)
            ?? panic("Missing or mis-typed NftEggsStore.Storefront")
    }

    execute {
        self.storefront.removeListing(listingResourceID: listingResourceID)
    }
}